import 'package:json_annotation/json_annotation.dart';

part 'GetFriendRequestListResultData.g.dart';

@JsonSerializable()
class GetFriendRequestListResultData {
  int? currentUserId;

  List<GetFriendRequestListResultDataFriendRequestView>? friendRequestViewList;

  static GetFriendRequestListResultData fromJson(Map<String, dynamic> json) {
    return _$GetFriendRequestListResultDataFromJson(json);
  }

  @override
  String toString() {
    return 'GetFriendRequestListResultData{currentUserId: $currentUserId, friendRequestViewList: $friendRequestViewList}';
  }
}

@JsonSerializable()
class GetFriendRequestListResultDataFriendRequestView {
  int? id;

  int? fromUserId;

  GetFriendRequestListResultDataUserView? fromUser;

  int? targetUserId;

  GetFriendRequestListResultDataUserView? targetUser;

  String? remark;

  DateTime? createTime;

  int? readStatus;

  int? status;

  static GetFriendRequestListResultDataFriendRequestView fromJson(
      Map<String, dynamic> json) {
    return _$GetFriendRequestListResultDataFriendRequestViewFromJson(json);
  }

  @override
  String toString() {
    return 'GetFriendRequestListResultDataFriendRequestView{id: $id, fromUserId: $fromUserId, fromUser: $fromUser, targetUserId: $targetUserId, targetUser: $targetUser, remark: $remark, createTime: $createTime, readStatus: $readStatus, status: $status}';
  }
}

@JsonSerializable()
class GetFriendRequestListResultDataUserView {
  int? id;

  String? code;

  String? nickname;

  String? phone;

  String? headPortrait;

  String? headPortraitStoreType;

  static GetFriendRequestListResultDataUserView fromJson(
      Map<String, dynamic> json) {
    return _$GetFriendRequestListResultDataUserViewFromJson(json);
  }

  @override
  String toString() {
    return 'GetFriendRequestListResultDataUserView{id: $id, code: $code, nickname: $nickname, phone: $phone, headPortrait: $headPortrait, headPortraitStoreType: $headPortraitStoreType}';
  }
}
